package org.dromara.bean.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.annotation.ExcelEnumFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 退费实体
 * @Author: jeecg-boot
 * @Date: 2020-08-08
 * @Version: V1.0
 */
@Data
@TableName("his_member_refund")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class HisMemberRefund implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @ExcelIgnore
    private String id;
    /**
     * 标题
     */

    @ExcelIgnore
    private String remark;




    @JsonFormat(
        timezone = "GMT+8",
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @DateTimeFormat(
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @ExcelIgnore
    private Date updateTime;


    @ExcelIgnore
    private Long memberId;
    @ExcelIgnore
    private Long orderTreatId;


    @ExcelIgnore
    private String status;
    @JsonFormat(
        timezone = "GMT+8",
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @DateTimeFormat(
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @ExcelIgnore
    private Date realRefundTime;
    @ExcelIgnore
    private String accessory;

    @ExcelIgnore
    private Long doctorId;




    @TableLogic
    @ExcelIgnore
    private Integer delFlag;


    @ExcelProperty(value = "申请人")
    private String operator;

    @ExcelProperty(value = "订单类型")
    @ExcelDictFormat(dictType = "order_type")
    private Integer orderType;

    @TableField(exist = false)
    @ExcelProperty(value = "所属订单编号")
    private String orderTreatNumber;


    @JsonFormat(
        timezone = "GMT+8",
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @DateTimeFormat(
        pattern = "yyyy-MM-dd HH:mm:ss"
    )
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    @ExcelProperty(value = "审核状态")
    @ExcelDictFormat(dictType = "check_status")
    private String checkStatus;

    @ExcelProperty(value = "退费金额")
    private Double money;

    @ExcelProperty(value = "退费原因")
    private String refundCause;

    @ExcelProperty(value = "拒绝原因")
    private String refuseCause;
}
